#pragma once

class YGoodsTypeTab
{
public:
	YGoodsTypeTab();
	~YGoodsTypeTab();

	void SetId(int nId) { m_nId = nId; }
	int GetId() { return m_nId; }
	void SetCode(TCHAR* pCode) { _tcsncpy(m_szCode,pCode,10); }
	TCHAR* GetCode() { return m_szCode; }
	void SetName(TCHAR* pName) { _tcsncpy(m_szName,pName,80); }
	TCHAR* GetName() { return m_szName; }
	void SetDesc(TCHAR* pDesc) 	{ _tcsncpy(m_szDesc,pDesc,100);}
	TCHAR* GetDesc() { return m_szDesc; }
	void SetParentId(int nId) { m_nParentID = nId; }
	int GetParentId()  { return m_nParentID; }
public: 
	int m_nId;
	int m_nParentID;
	TCHAR m_szCode[11];
	TCHAR m_szName[81];
	TCHAR m_szDesc[101];
};
